﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Dolinay;

namespace nSL.Config
{
    public class Common
    {
        #region enum
        public enum Lang
        {
            Tha,
            Eng
        }

        #endregion

        #region struct
        public struct LECTURE_INFO
        {
            public string course_id;
            public string lecture_id;
            public string course_name;
            public string lecture_name;
        }
        public struct LECTURE_FILE_INFO
        {
            public string lecture_id;
            public string file_id;
            public string file_desp;
            public string file_type;
        }
        #endregion

        #region static value
        /// <summary>
        /// Get current application path end string without "\".
        /// </summary>
        public static string CURRENT_APP_PATH = System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
        /// <summary>
        /// Current temporary path end with "\".
        /// </summary>
        public static string TEMP_PATH = CURRENT_APP_PATH + "\\Temp\\";
        public static Lang CURRENT_LANGUAGE = Lang.Tha;
        public static string EXIT_CODE = "exit";
        public static int RSAKeySize = 2048;

        #endregion

        #region user variable
        public static DataSet USER_DATA = null;
        public static DataSet USER_COURSE = null;
        public static DataSet COURSE_FILE = null;

        public static LECTURE_INFO lecture_info;
        public static LECTURE_FILE_INFO lecture_file_info;
        #endregion

        #region doc list
        public static string[] DocType = {".doc",".ppt",".pptx",".pps",".ppsx",".pdf",".exe" };
        #endregion
    }
}
